<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>添加信息</title>
    <jsp:include page="head.jsp"></jsp:include>
</head>

<body>

<div class="x-body">
    <form accept-charset="UTF-8" action="${pageContext.request.contextPath}/addStudent" class="layui-form"
          id="f_auto" method="post">
        <div class="layui-form-item">
            <label class="layui-form-label">学号：</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" name="s_studentid" class="layui-input"
                       placeholder="请输入学号">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">姓名：</label>
            <div class="layui-input-block">
                <input type="text" lay-verify="required" name="s_name" class="layui-input" placeholder="请输入姓名">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">性别</label>
            <div class="layui-input-block">
                <input type="radio" name="s_sex" value="男" title="男" checked="">
                <input type="radio" name="s_sex" value="女" title="女">
                <%--<input type="text" name="s_sex" class="layui-input" id="s_sex" placeholder="请输入性别">--%>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">年龄：</label>
            <div class="layui-input-block">
                <input type="text" name="s_age" class="layui-input" i placeholder="请输入年龄">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">电话：</label>
            <div class="layui-input-block">
                <input type="text" name="s_phone" class="layui-input" placeholder="请输入电话">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">班级编号：</label>
            <div class="layui-input-block">
                <select name="s_classid" lay-verify="required">
                    <c:forEach var="c" items="${classList}">
                        <option value="${c.c_classid}">${c.c_classid}</option>
                    </c:forEach>
                    <%--  <option value=""></option>
                      <option value="141">141</option>
                      <option value="151">151</option>
                      <option value="1703">1703</option>
                      <option value="1704">1704</option>--%>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">班级名：</label>
            <div class="layui-input-block">
                <select name="s_classname" lay-verify="required">
                    <c:forEach var="c" items="${classList}">
                        <option value="${c.c_classname}">${c.c_classname}</option>
                    </c:forEach>
                    <%--  <option value=""></option>
                      <option value="生物工程">生物工程</option>
                      <option value="软件工程">软件工程</option>
                      <option value="计算机">计算机</option>--%>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">寝室编号：</label>
            <div class="layui-input-block">
                <select name="s_dormitoryid" lay-verify="required" id="s_dormitoryid">
                    <c:forEach var="c" items="${dormitoryList}">
                        <option value="${c.s_dormitoryid}">${c.s_dormitoryid}</option>
                    </c:forEach>

                    <%--                            <option value=""></option>--%>
                    <%--                            <option value="111">111</option>--%>

                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="submit" class="layui-btn layui-btn-normal" lay-submit lay-filter="formDemo">提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>

<script>

</script>
</body>
</html>
